<%@page import="java.util.ArrayList"%>
<%@page import="siteflash.model.Game"%>
<%@page contentType="text/xml;charset=UTF-8" language="java"%>
<%@page import="java.util.List"%>
<% ArrayList<Game> games= (ArrayList<Game>)request.getAttribute("games"); %>
<?xml version="1.0" encoding="UTF-8"?>
  <rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
    xmlns:admin="http://webns.net/mvcb/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>    
    <title><![CDATA[Submit free game - Submit press release online free of charge]]></title>
    <link>http://www.y1s.org</link>
    <description><![CDATA[Free games provided by y1s.org - your free game directory. Find free online game for your website.]]></description>
    <dc:creator>y1s.org</dc:creator>
    <dc:rights>Copyright 2012</dc:rights>
    <admin:generatorAgent rdf:resource="http://www.y1s.org" />
        <%
            for(int i=0;i<games.size();i++)
            {
                Game game = games.get(i);
        %>
               <item>
                  <title><![CDATA[ <%=game.getName()%> ]]></title>
                  <link>http://www.y1s.org/game/<%=game.getAlias()%></link>
                  <description><![CDATA[ <%=game.getDescription().getValue() %>]]></description>
                  <pubDate><%=game.getCreated().toGMTString() %></pubDate>
               </item>
       <%
            }
       %>      
    </channel>
</rss> 